package com.cisdi.info.simple.service.permission;

import com.cisdi.info.simple.dto.base.PageDTO;
import com.cisdi.info.simple.dto.base.PageResultDTO;
import com.cisdi.info.simple.entity.permission.Module;
import com.cisdi.info.simple.entity.permission.Permission;
import com.cisdi.info.simple.util.ModuleManager;

import java.util.ArrayList;
import java.util.List;

public interface PermissionService {

public PageResultDTO findPermissions(PageDTO pageDTO);

public List<Permission> findAllPermissions();

public List<Permission> findAllPermissionsWithIdName();

public Permission findPermission(Long permissionId);

//所有外键的Name都以加载
public Permission findPermissionWithForeignName(Long permissionId);

public Permission savePermission(Permission permission);

public Permission updatePermission(Permission permission);

public void deletePermission(Long permissionId);

public List<Permission> getAllPermissions();
}
